﻿capital = 543
OOB = "MAG_AFR"
set_naval_oob= "MAG_naval"
set_research_slots = 2
set_convoys = 36

add_ideas = {
	MAG_Emil_Maurice_hog_sco
	MAG_Bernhard_Rogge_for_ade
	MAG_Walther_von_Brauchitsch_eco_ade
	MAG_Erhard_Milch_sec_ade
}

starting_train_buffer = 2.0

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
		basic_heavy_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		improved_light_tank_chassis = 1
		basic_heavy_tank_chassis = 1
		engine_tech_1 = 1
	}
}
set_technology = {
	### MOD ###
	basic_train = 1
	
	### General ###
	electronic_mechanical_engineering = 1

	### INF ###
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1
	tech_recon = 1
	tech_engineers = 1
	tech_mountaineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	gw_artillery = 1
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			aa_cannon_1 = 1
			early_bombs = 1
			engines_1 = 1
			engines_2 = 1
			iw_small_airframe = 1
			basic_small_airframe = 1
			iw_medium_airframe = 1
			basic_medium_airframe = 1
			iw_large_airframe = 1
			basic_large_airframe = 1
			air_torpedoe_1 = 1
		}
		MAF_BBA_air_variants = yes
	else = {
		set_technology = {
			early_fighter = 1
			fighter1 = 1
			naval_bomber1 = 1
			early_bomber = 1
			strategic_bomber1 = 1
			tactical_bomber1 = 1
			CAS1 = 1
			cv_early_fighter = 1
			cv_naval_bomber1 = 1
			cv_CAS1 = 1
		}
	}
}

### Navy - MtG ###
set_technology = {
	early_ship_hull_light = 1
	basic_ship_hull_light = 1
	early_ship_hull_cruiser = 1
	basic_ship_hull_cruiser = 1
	panzerschiffe = 1
	early_ship_hull_submarine = 1
	basic_ship_hull_submarine = 1
	early_ship_hull_carrier = 1
	basic_ship_hull_carrier = 1
	early_ship_hull_heavy = 1
	basic_ship_hull_heavy = 1
	pre_dreadnoughts = 1
	
	basic_naval_mines = 1

	## Modules##
	basic_battery = 1
	basic_light_battery = 1
	
	basic_heavy_battery = 1
	basic_depth_charges = 1
	basic_torpedo = 1
	improved_ship_torpedo_launcher = 1
	basic_cruiser_armor_scheme = 1
	basic_heavy_armor_scheme = 1
	
	mtg_transport = 1
}

set_politics = {
	ruling_party = authoritarian_democrat
	last_election = "1888.6.15"
	election_frequency = 48
	elections_allowed = no
}


if = {
	limit = {
		is_ai = no
	}
	set_rule = {
		can_send_volunteers = yes
		can_be_spymaster = yes
		can_decline_call_to_war = yes
		can_not_declare_war = no
		can_puppet = yes
		units_deployed_to_overlord = yes
	}
}

add_ideas = {
	Generic_Colonial_Nation
	MAG_Mittelafrikan_Fleet
	MAG_Jewish_Settlement
}

set_popularities = {
  totalist = 0
  radical_socialist = 0
  syndicalist = 0
  social_democrat = 10
  social_liberal = 0
  market_liberal = 10
  social_conservative = 20
  authoritarian_democrat = 40
  paternal_autocrat = 10
  national_populist = 10
}

#Madagaskan intro
country_event = {
	id = mag.2
	days = 1
}
MAF = { country_event = { id = mag.2 days = 43 } } #

#The Settler Situation in Madagaskar
country_event = {
	id = mag.5
	days = 33 
}
MAF = {
	country_event = {
		id = mag.5
		days = 56 
	}
}
GER = {
	country_event = {
		id = mag.5
		days = 56 
	}
}

#The Beast's Driver
country_event = {
	id = mag.6
	days = 47 
}
MAF = {
	country_event = {
		id = mag.6
		days = 48 
	}
}

#The Diego Suarez Project
country_event = {
	id = mag.7
	days = 17 
}

MAF = {
	country_event = {
		id = mag.7
		days = 26 
	}
}

GER = {
	country_event = {
		id = mag.7
		days = 26 
	}
}

#A Paradise on the Surface
country_event = {
	id = mag.12
	days = 13 
}

1177 = { set_state_name = "Mahajanga" }
1179 = { set_state_name = "Toliara" }
1178 = { set_state_name = "Fianarantsoa" }

#New Flavour

#SMOTIG Reforms
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.1
		days = 39 
	}
}

#Assassination
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.2
		days = 125 
	}
}

#Black Monday
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.3
		days = 46 
	}
}

#Société Sucrière de Madagascar Shuts Down
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.4
		days = 77 
	}
}


#Schuztruppe Desecrate Ambohimanga
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.5
		days = 196 
	} 
}

#Ranavalona III's Body Returned to Manjakamiadana
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
			tag = NFA
			tag = FRA
		}
	}
	country_event = {
		id = magfla.6
		days = 275 
	}
}

#Madagaskan Concession Companies See Profits
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = NFA
			tag = FRA
			tag = GER
		}
	}
	country_event = {
		id = magfla.13
		days = 305 
	}
}

#League for the Protection of Fomba
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.7
		days = 344 
	}
}

#The Three Crocodiles
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = NFA
			tag = FRA
			tag = GER
		}
	}
	country_event = {
		id = magfla.12
		days = 378 
	}
}

#Deutsche Erdoel Finish the Tsimiroro Oil Well
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.15
		days = 415 
	}
}

#Closure of the Befelatanana Medical School
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = NFA
			tag = GER
		}
	}
	country_event = {
		id = magfla.8
		days = 455 
	}
}


#Christian Infighting on Madagaskar
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
			tag = NFA
			tag = PAP
		}
	}
	country_event = {
		id = magfla.10
		days = 480 
	}
}


#The Closure of Novy Lava
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.14
		days = 513 
	}
}

#The Curious Incident of Count Benyovszky
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = NFA
			tag = FRA
			tag = GER
			tag = POL
			tag = GER
			tag = CZE
			tag = RUS
		}
	}
	country_event = {
		id = magfla.9
		days = 544 
	}
}

#Excavations at Vohemar
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
			tag = NFA
			tag = FRA
			tag = KEN
			tag = PAF
			tag = ZZB
			tag = SOM
			tag = DJI
		}
	}
	country_event = {
		id = magfla.22
		days = 572 
	}
}


#Tribal Clashes in Betsimisarakaland
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.11
		days = 633 
	}
}

#Présence Française Protests German Language Requirements
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.16
		days = 674 
	}
}

#Death of Prince Ramahatra of Merina
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.17
		days = 722 
	}
}
#Japan and the Japanese
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
			tag = JAP
		}
	}
	country_event = {
		id = magfla.18
		days = 801 
	}
}

#Reunion
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = DJI
			tag = GER
		}
	}
	country_event = {
		id = magfla.19
		days = 888 
	}
}

#Office du Riz Sparks Backlash
every_country = {
	limit = {
		OR = {
			tag = MAG
			tag = MAF
			tag = GER
		}
	}
	country_event = {
		id = magfla.20
		days = 1074 
	}
}

set_cosmetic_tag = MAG_GER

set_stability = 0.24
set_war_support = 0.26
add_political_power = -88

create_country_leader = {
	name = "Reinhard Heydrich"
  desc = "POLITICS_HEYDRICH_MAG_DESC"
	picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Reinhard_Heydrich.png"
	expire = "1.1.1"
	ideology = colonial_govt_subtype
	traits = {}
}

create_country_leader = {
	name = "Léon Cayla"
    desc = "POLITICS_LEON_CAYLA_DESC"
	picture = "gfx/leaders/MAG/MAG_Leon_Cayla.png"
	expire = "1.1.1"
	ideology = revolution_nationale_subtype
	traits = {}
}

create_country_leader = {
	name = "Jean-Joseph Rabearivelo"
    desc = "POLITICS_RABEARIVELIO_DESC"
	picture = "gfx/leaders/MAG/MAG_Jean-Joseph_Rabearivelo.png"
	expire = "1.1.1"
	ideology = maurrassism_subtype
	traits = {}
}

create_country_leader = {
	name = "Emil Maurice"
   desc = "POLITICS_MAURICE_SOCCON_DESC"
	picture = "gfx/leaders/MAG/MAG_Emil_Maurice.png"
	expire = "1.1.1"
	ideology = moderate_authoritarianism_subtype
	traits = {}
}

create_field_marshal = {
	name = "Reinhard Heydrich "
	portrait_path = "gfx/leaders/MAF/Portrait_Mittelafrika_Reinhard_Heydrich.png"
	traits = {
		politically_connected
		naval_liason
		naval_invader
	}
	id = 69420
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Herbert Gille"
	portrait_path = "gfx/leaders/MAF/Portrait_Mittelafrika_Herbert_Gille.png"
	traits = {
		politically_connected
		war_hero
		career_officer
	}
	id = 69421
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Walther von Brauchitsch"
	portrait_path = "gfx/leaders/MAF/Portrait_Mittelafrika_Walther_von_Brauchitsch.png"
	traits = {
		cavalry_leader
		career_officer
		expert_delegator
	}
	id = 69422
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Armand Annet"
	portrait_path = "gfx/leaders/MAG/MAG_Armand_Annet.png"
	traits = {
		politically_connected
		old_guard
	}
	skill = 2
	attack_skill = 2
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Emil Maurice"
	portrait_path = "gfx/leaders/MAG/MAG_Emil_Maurice.png"
	traits = {
		politically_connected
	}
	skill = 2
	attack_skill = 2
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Gabriel Ramanantsoa"
	portrait_path = "gfx/leaders/MAG/MAG_Gabriel_Ramanantsoa.png"
	traits = { 
		career_officer
		infantry_leader 
	}
	skill = 3
	attack_skill = 2
	defense_skill = 1
	planning_skill = 3
	logistics_skill = 2
}

create_navy_leader = {
	name = "Reinhard Heydrich "
	portrait_path = "gfx/leaders/MAF/Portrait_Mittelafrika_Reinhard_Heydrich.png"
	traits = {}
	skill = 2
	attack_skill = 1
	defense_skill = 2
	maneuvering_skill = 2
	coordination_skill = 2
}


GER_start_naval_variant = yes